cmake_minimum_required(VERSION 3.21)
project(WonderfulColor)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)


find_package(Qt6 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

add_executable(WonderfulColor WIN32 main.cpp MainWidget.cpp MainWidget.h MainWidget.ui ColorDesktop.cpp ColorDesktop.h ColorDesktop.ui DetailWidget.cpp DetailWidget.h DetailWidget.ui
    res.qrc)
target_link_libraries(WonderfulColor
        Qt6::Core
        Qt6::Gui
        Qt6::Widgets
        )

